﻿using UnityEngine;
using System.Collections;

public class Braveteam : MonoBehaviour {

	public void Transfer(MapNote note)
	{
		transform.position = new Vector3((note.x-0.5f)*Dungenon.noteSize,0.1f,(note.y-0.5f)*Dungenon.noteSize);
	}

	// Use this for initialization
	void Start ()
	{
		Gamecontrol.Instance.e_startgame += delegate()
		{
			Transfer(Gamecontrol.Instance.CurrDungenon.startNote);
			gameObject.SetActive(true);
		};
		gameObject.SetActive(false);
	}
	
	// Update is called once per frame
	void Update ()
	{
		//Debug.Log(GetComponent<Renderer>().bounds.size.x);
	}
}
